//using Microsoft.VisualBasic;
using System;

//
// *  NHibernate 代码模版
// 

using System.Collections.Generic;

namespace NCS
{
	/// <summary>
	///	
	/// </summary>
	[Serializable()]
	public class program
	{

		#region "构造方法"
		public program()
		{
			m_tablehead1 = null;
			m_tablehead2 = null;
			m_id = 0;
			m_sampleId = 0;
			m_isON = false;
			m_xuhao = 0;
			m_sessionid = 0;
			m_lastUser = null;
			m_autoLogon = false;
			m_tpid = 0;

			m_demo = false;
		}
		#endregion


		#region "私有变量"
		private string m_tablehead1;
		private string m_tablehead2;
		private int m_id;
		private int m_sampleId;
		private bool m_isON;
		private short m_xuhao;
		private int m_sessionid;
		private string m_lastUser;
		private bool m_autoLogon;
		private int m_tpid;

		private bool m_demo;
		#endregion


		#region "公有属性"

		///<summary>
		///
		///</summary>
		public virtual string tablehead1 {
			get { return m_tablehead1; }
			set { m_tablehead1 = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string tablehead2 {
			get { return m_tablehead2; }
			set { m_tablehead2 = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int id {
			get { return m_id; }
			set { m_id = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int sampleId {
			get { return m_sampleId; }
			set { m_sampleId = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual bool isON {
			get { return m_isON; }
			set { m_isON = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual short xuhao {
			get { return m_xuhao; }
			set { m_xuhao = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int sessionid {
			get { return m_sessionid; }
			set { m_sessionid = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string lastUser {
			get { return m_lastUser; }
			set { m_lastUser = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual bool autoLogon {
			get { return m_autoLogon; }
			set { m_autoLogon = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int tpid {
			get { return m_tpid; }
			set { m_tpid = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual bool demo {
			get { return m_demo; }
			set { m_demo = value; }
		}

		#endregion

		#region "Rewrite Equals and HashCode"
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if (object.ReferenceEquals(this, obj)) {
				return true;
			}
			if ((obj == null) || (!object.ReferenceEquals(obj.GetType(), GetType()))) {
				return false;
			}
			program castObj = (program)obj;
			return (castObj != null) && (m_id == castObj.id);
		}
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 57;
			hash = 27 * hash * m_id.GetHashCode();
			return hash;
		}
		#endregion
	}
}
